package com.learn.kotlinlearndemolist

import kotlin.properties.Delegates

/**
 * author: ts
 * created on: 2025/2/11 上午9:41
 * description:
 */
class Delegated {
    val lazyValue: String by lazy {
        println("Lazy Initialized!")
        "Hello"
    }

    var name: String by Delegates.observable("<no name>") {
        property, oldValue, newValue ->
        println("$oldValue -> $newValue")
    }
}